//
//  VOHFirstViewController.m
//  VoiceOfHeart
//
//  Created by 吉龙 on 16/8/12.
//  Copyright © 2016年 吉龙. All rights reserved.
//

#import "VOHFirstViewController.h"
#import "VOHFirtView.h"
#import "VOHButton.h"
#import "VOHUserViewController.h"
#import "VOHMVViewController.h"
#import "VOHMusicViewController.h"
<<<<<<< HEAD
#import "VOH_S_ViewController.h"
=======
#import "VOHRadioController.h"
#import "VOHMVNavigationController.h"
#import "VOHMusicNavigationController.h"
>>>>>>> 75001263d58aa112ea94630cfa176a0f5723c4ab
@interface VOHFirstViewController ()
@property(nonatomic, strong)VOHFirtView *fv;
@end

@implementation VOHFirstViewController

-(void)loadView{
    self.fv = [[VOHFirtView alloc] initWithFrame:[UIScreen mainScreen].bounds];
    self.view = self.fv;
}


- (void)viewDidLoad {
    [super viewDidLoad];
  
    
    //主要按钮点击事件
    [self addButtonAction];
    
    }


-(void)addButtonAction{
    
   
    __weak typeof(self)weakSelf = self;
        [self.fv.roundMenu setButtonClickBlock:^(NSInteger index) {
        
        switch (index) {
            case 0:
            {
                VOHMusicNavigationController *musicNaCtr = [[VOHMusicNavigationController alloc] initWithRootViewController:[[VOHMusicViewController alloc] init]];
                [weakSelf presentViewController:musicNaCtr animated:YES completion:nil];
            }
                break;
            case 1:
            {
                VOHMVNavigationController *MVNavCtr = [[VOHMVNavigationController alloc] initWithRootViewController:[[VOHMVViewController alloc] init]];
                [weakSelf presentViewController:MVNavCtr animated:YES completion:nil];
               
            }
                break;
            case 2:
            {
                UINavigationController *radioNavCtr = [[UINavigationController alloc] initWithRootViewController:[[VOH_S_ViewController alloc] init]];
                [weakSelf presentViewController:radioNavCtr animated:YES completion:nil];
            }
                break;
            case 3:
            {
                UINavigationController *UserNavCtr = [[UINavigationController alloc] initWithRootViewController:[[VOHUserViewController alloc] init]];
                [weakSelf presentViewController:UserNavCtr animated:YES completion:nil];
            }
                break;
                
        }
    
        
    }];

   
  }



//点击按钮触发
-(void)returnButton{
   [self dismissViewControllerAnimated:YES completion:^{
           }];
}


@end
